/* Flower recognition

grid.h coded by Huynh Nam in 2014*/

#include <stdio.h>
#include "gridItem.h"
#include "opencv2/core/core.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/nonfree/nonfree.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <vector>

using namespace cv;
class grid {
    private:
		char* label;
		std::vector <gridItem> listItem;
		int nBlock;
public:
	grid(Mat image,int _nB, char* _label);
	grid(Rect _roi,int _nB, char* _label);
	char* getLabel();
	std::vector<gridItem> getListItem();
	int getNBlock();
	gridItem getItem(int _index);
};